home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mgr / mgrdemos.zoo / demo / sh / cursor < prev    next >
Encoding:
Text File  |  1989-01-25  |  981 b   |  37 lines

  1. #!/bin/sh
  2. #                        Copyright (c) 1987 Bellcore
  3. #                            All Rights Reserved
  4. #       Permission is granted to copy or use this program, EXCEPT that it
  5. #       may not be sold for profit, the copyright notice must be reproduced
  6. #       on copies, and credit should be given to Bellcore where it is due.
  7. #       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  8.  
  9. #    $Header: cursor,v 1.1 88/08/12 07:44:06 sau Exp $
  10. #    $Source: /tmp/mgrsrc/demo/sh/RCS/cursor,v $
  11.  
  12. #    set cursor style
  13. SET=h
  14. ESC=
  15.  
  16. if /bin/test $TERM != mgr
  17. then
  18.    echo "$0 only works on mgr terminals"
  19.    exit 1
  20. fi
  21.  
  22. case $1 in
  23.     n*)        echo -n $ESC$SET;;
  24.     l*)        echo -n ${ESC}1$SET;;
  25.     b*)        echo -n ${ESC}3$SET;;
  26.     u*)            echo -n ${ESC}4$SET;;
  27.     r*)            echo -n ${ESC}2$SET;;
  28.     i*)            echo -n ${ESC}5$SET;;
  29.     *)                echo "Specify one of:"
  30.                     echo " n(ormal)"
  31.                     echo " b(ox)"
  32.                     echo " u(nderline)"
  33.                     echo " l(eft)"
  34.                     echo " r(ight)"
  35.                     echo " i(nvisible)";;
  36. esac
  37.